Factor the metadata into test filenames
authorAlex Crichton <alex@alexcrichton.com>
Sun, 20 Jul 2014 19:00:01 +0000 (12:00 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 20 Jul 2014 19:02:19 +0000 (12:02 -0700)
Closes #221
Closes #226

src/cargo/ops/cargo_compile.rs

index b4d91f1f9836fb1ad6fe8bb860ceb6a584250465..26cb33d217d8e8b0d9d234a534dab3c74a38966a 100644 (file)
@@ -97,7 +97,7 @@ pub fn compile(manifest_path: &Path,
         .filter_map(|target| {
             if target.get_profile().is_test() {
                 debug!("Run  Target: {}", target.get_name());
-                Some(target.get_name().to_string())
+                Some(target.file_stem())
             } else {
                 debug!("Skip Target: {}", target.get_name());
                 None